/*
 * @Author: guowu
 * @Date: 2022-02-14 15:11:15
 * @LastEditTime: 2022-02-14 15:41:50
 */
import rule from '../src/GoldInlaidRose'


describe('should the number of days from the expiration of backstage tickets is 12 The value is 10  when Last 1 day', () => {
    let result: number = 0;

    beforeEach(() => {
        result = 0;
    });

    test('day is 12 price is 10 hasDay is 1', () => {
        result=new rule(12,10,1).backstageTicketsMoney()
    });
     afterEach(() => {
        expect(result).toBe("5");
    });
});
describe('should the number of days from the expiration of aged Cheese is 12 The value is 10  when Last 1 day', () => {
    let result: number = 0;

    beforeEach(() => {
        result = 0;
    });

    test('day is 12 price is 10 hasDay is 1', () => {
        result=new rule(12,10,1).agedCheeseMoney()
    });
     afterEach(() => {
        expect(result).toBe("5");
    });
});
describe('should the number of days from the expiration ofsafras is 12 The value is 10  when Last 1 day', () => {
    let result: number = 0;

    beforeEach(() => {
        result = 0;
    });

    test('day is 12 price is 10 hasDay is 1', () => {
        result=new rule(12,10,1).safrasMoney()
    });
     afterEach(() => {
        expect(result).toBe("5");
    });
});
describe('should the number of days from the expiration of conventional Goods is 12 The value is 10  when Last 1 day', () => {
    let result: number = 0;

    beforeEach(() => {
        result = 0;
    });

    test('day is 12 price is 10 hasDay is 1', () => {
        result=new rule(12,10,1).conventionalGoodsMoney()
    });
     afterEach(() => {
        expect(result).toBe("5");
    });
});

